<?php


function test_sendmail(){ 
	require("components/phpmailer/class.phpmailer.php");
	$mail = new PHPMailer(); 
	$mail->IsSMTP();
	$mail->Host = "mail.solusi-prima.com";
	$mail->Port = "25";
	$mail->SMTPAuth = true;
	$mail->Username = 'billing@solusi-prima.com';
	$mail->Password = 'gungun123';
 
	$mail->AddAddress("gunturris@gmail.com","Gungun");
	$mail->Subject = "Uji S Mp";
	$mail->Body = "Test 1 of S.";

	if(!$mail->Send())
	{
	   echo "Error sending: " . $mail->ErrorInfo;;
	}
	else
	{
	   echo "Letter is sent";
	}
}
?> 